
<template>
  <div class="pie-chart-container">
    <el-row :gutter="24" class="box-between">
      <el-col v-for="item in itemsChart" :key="item.id" :span="6">
        <div class="chart-wrapper">
          <pie-chart
            :id="item.id"
            :title="item.title.text"
            :series="item.series"
            :color="item.color"
          />
        </div>
        <div class="buttom-title">{{ item.titleButtom }}</div>
      </el-col>
    </el-row>
    <!-- <div v-if="totalAmount" :total-amount="totalAmount" class="total-absolute"><span style="color:#408AFF;font-weight: 600;line-height: 30px;">{{ totalAmount }}</span><br>总金额</div> -->
  </div>
</template>

<script>
import PieChart from './components-group/PieChart'
export default {
  components: {
    PieChart
  },
  props: {
    itemsChart: {
      type: Array,
      default: null
    }
    // ,
    // totalAmount: String
  },
  data() {
    return {

    }
  },
  mounted() {
    console.log(this.itemsChart, '0000')
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.pie-chart-container {
  position: relative;
  margin-top: 20px;
  background: rgba(255, 255, 255, 1);
  .chart-wrapper {
    height: 300px;
  }
  .buttom-title{
    text-align:center;
    width:100%;
    position: relative;
    top: -20px;
  }
}
</style>
